import os
fnames =lambda x: "json_files/{}".format(x)
targets = os.listdir("json_files")
#print(targets)
fnames = [fnames(x) for x in targets]
#print(fnames)
import json
for x in fnames:
    target = open(x,"r").read()
    target = json.loads(target)
    target["routing"]["rules"] = []
    with open(x,"w") as f:
        f.write(json.dumps(target))
